package cn.com.spic.demo.po;

import cn.com.spic.demo.dto.ActionProejctDTO;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.yonyou.iuap.baseservice.entity.MainBusinessObjectCode;
import com.yonyou.iuap.ucf.dao.BasePO;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.List;

/**
 * 九大专项PO类（ADD）
 */
@Table(name = "nine_special_project")
@JsonIgnoreProperties(ignoreUnknown = true)

//@CodeRules   /**业务日志*/
public class SpecialProjectPO extends BasePO implements MainBusinessObjectCode {

    private static final long serialVersionUID = 4847288419553617842L;

    @Column(name = "id")
    private String id;
    @Column(name = "special_project_name")
    private String specialProjectName;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT")
    @Column(name = "start_time")
    private String startTime;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT")
    @Column(name = "end_time")
    private String endTime;

    @Column(name = "def")
    private String def;

    @Column(name = "def1")
    private String def1;

    @Column(name = "def2")
    private String def2;

    @Column(name = "def3")
    private String def3;

    @Column(name = "def4")
    private String def4;


    private List<ActionProejctDTO> actionProejctDTOS;

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public List<ActionProejctDTO> getActionProejctDTOS() {
        return actionProejctDTOS;
    }

    public void setActionProejctDTOS(List<ActionProejctDTO> actionProejctDTOS) {
        this.actionProejctDTOS = actionProejctDTOS;
    }

    public String getDef() {
        return def;
    }

    public void setDef(String def) {
        this.def = def;
    }

    public String getDef1() {
        return def1;
    }

    public void setDef1(String def1) {
        this.def1 = def1;
    }

    public String getDef2() {
        return def2;
    }

    public void setDef2(String def2) {
        this.def2 = def2;
    }

    public String getDef3() {
        return def3;
    }

    public void setDef3(String def3) {
        this.def3 = def3;
    }

    public String getDef4() {
        return def4;
    }

    public void setDef4(String def4) {
        this.def4 = def4;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getSpecialProjectName() {
        return specialProjectName;
    }

    public void setSpecialProjectName(String specialProjectName) {
        this.specialProjectName = specialProjectName;
    }

    @Override
    public String getMainBoCode() {
        return this.getClass().getSimpleName().replace("PO", "");
    }
}
